package com.platform.common.constants;


import org.apache.logging.log4j.util.PropertiesUtil;

/**
 * Redis缓存前缀常量类
 */
public class RedisConstants {

    /**
     * 是否启用缓存(true为启用,false为不启用)
     */
    public static final boolean REDIS_OPEN = "true".equals("true");

    /**
     * 下划线
     */
    public static final String REDIS_UNDERLINE = "_";
    /**
     * 符号
     */
    public static final String REDIS_ASTERISK = "*";

    /**
     * session缓存时间
     */
    public static final long REDIS_SESSION_TIMEOUT = 7200L;

    /**
     * shiro session缓存前缀
     */
    public static final String REDIS_SHIRO_SESSION = "REDIS_SHIRO_SESSION:";

    /**
     * 定义redis缓存键前缀
     */
    public static final String REDIS_USERINFO_KEY_PREFIX = "";
}
